package com.raowb.common.enums;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 错误代码
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ErrorEnum implements CodeMsg{
	E500("500", "服务器错误"), E400("400", "资源找不到"), E0("0", "未知错误");

	private String code;
	private String msg;

	ErrorEnum(final String code, final String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public String getCode() {
		return code;
	}
	@Override
	public String getMsg() {
		return msg;
	}

}
